Sets
	I  scenarios /i1 * i80/
	L  /l1 * l10/
	
;

OPTIONS ITERLIM  = 100000, RESLIM   = 10000, LIMROW   = 10,
        LIMCOL   = 0,     SYSOUT   = OFF,   SOLPRINT = OFF,
        LP = cplex, NLP=MINOS5, MIP=cplex,  OPTCR = 0.0001,
	SEED = 1500;


Parameters
	tw    /25/
	c    /30/
	w(L)
	/l1  5
	 l2  7
	 l3  11
	 l4  9
	 l5  8
	 l6  4
	 l7  12
	 l8  10
	 l9  3
	 l10 6/
	ks(I, L)
	M(I)
;

M(I) = 100000;
ks(I, "l1") = normal(7, 15 );
ks(I, "l2") = normal(12, 20 );
ks(I, "l3") = normal(14, 15 );
ks(I, "l4") = normal(13, 10 );
ks(I, "l5") = normal(12, 8 );
ks(I, "l6") = normal(5, 20 );
ks(I, "l7") = normal(16, 8 );
ks(I, "l8") = normal(11, 15 );
ks(I, "l9") = normal(4, 20 );
ks(I, "l10") = normal(7, 25 );
	
Variables
	x(L)
	y(I)
	z
;
Binary variable y;
Positive variable x;

Equations
	cost
	knapsack(I)
	capacity
;

cost.. z =e= sum (i, y(i)) / card(I);
capacity.. sum(l, x(l) * w(l)) =e= tw;
knapsack(I).. sum(l, x(l) * ks(I,l)) - c =g= M(i)*(y(i) - 1);


model skp /all/;

solve skp using mip maximizing z;